<?php
$pid=$_GET['pid'];

$con = mysql_connect("localhost:3306","root","");
if (!$con){
	die('Could not connect: ' . mysql_error());
}
mysql_select_db("pm", $con);
$result = mysql_query("SELECT * FROM pic where pid=".$pid);

$normal = "";$broken = "";

while($row = mysql_fetch_array($result)){
	$normal = $row['normal'];
	$broken = $row['broken'];
}
mysql_close($con);

?>

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>PM</title>

<!-- 新 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css">

<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>

<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>

</head>
<body>

<nav class="navbar navbar-inverse navbar-fixed-top">
  <div class="container-fluid">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <a class="navbar-brand" href="/">This is a website</a>
    </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav navbar-right">
        <li><a href="statement.html">Statement</a></li>
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
          About me
          <span class="caret"></span></a>
          <ul class="dropdown-menu">
            <li><a href="#">E-mail:</a></li>
            <li><a href="#">858596441@qq.com</a></li>
          </ul>
        </li>
      </ul>
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav>


<div style="float: left;width: 50%;">
<img style="width: 100%" src="<?php echo $normal;?>">
</div>
<div style="float: left;width: 50%;">
<img style="width: 100%" src="<?php echo $broken;?>">
</div>

</body>
</html>